package com.d3.sx_eprotection.service.serviceImp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.d3.sx_eprotection.entity.AQIlevel;
import com.d3.sx_eprotection.mapper.AQIlevelMapper;
import com.d3.sx_eprotection.service.AQIlevelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AQIlevelServiceImp extends ServiceImpl<AQIlevelMapper, AQIlevel> implements AQIlevelService {
    @Resource
    private AQIlevelMapper aqIlevelMapper;
    @Override
    public List<AQIlevel> getList() {
        return aqIlevelMapper.getList();
    }

    @Override
    public String getTip(int id) {
        return aqIlevelMapper.getTip(id);
    }

    @Override
    public String getMsg(int id) {
        return aqIlevelMapper.getMsg(id);
    }

    @Override
    public List<AQIlevel> SO2Test(float SO2) {
        return aqIlevelMapper.SO2Test(SO2);
    }

    @Override
    public List<AQIlevel> COTest(float CO) {
        return aqIlevelMapper.COTest(CO);
    }

    @Override
    public List<AQIlevel> PMTest(float PM) {
        return aqIlevelMapper.PMTest(PM);
    }
}
